package com.ebo.commonlib.utils;

import android.view.View;
import android.view.ViewGroup;

import com.ihongqiqu.util.DisplayUtils;

/**
 * Created by admin on 2018/5/7.
 */

public class MyDisplayUtils {


    public static void percentHeight(View view, float percent) {
        ViewGroup.LayoutParams lp = view.getLayoutParams();
        lp.height = (int) (DisplayUtils.getScreenH(AppUtil.getActivityFromView(view)) * percent);
        view.setLayoutParams(lp);
    }


}
